<div class="post_win_tab clearfix">
   {foreach $data as $val}
   <a href="#">{$val@key}</a>
   {/foreach}
</div>
<div class="post_win_con clearfix">
  {foreach $data as $val}
  
	<div class="face p10 clearfix" style="display:none">
	  {foreach $val as $v}
	  <a href="#" title="{$v.phrase}"><img src="{$v.url}"></a>
	  {/foreach}
	</div>
	{/foreach}
</div>
<script type="text/javascript" charset="utf-8">
  $('.post_win_tab a').click(function(){
    var index = $(this).index('.post_win_tab a');
    $('.post_win_tab a').removeClass('current');
    $(this).addClass('current');
    $('.post_win_con .face').hide();
    $('.post_win_con .face:eq('+index+')').show();
    return false;
  });
  $('.post_win_tab a:eq(0)').click();
  $('.post_win_con a').click(function(){
    $('#tweet_content').insertAtCaret(this.title);
    return false;
  });
</script>